home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / dev / c / libiconv_src.lha / tests / check-stateful.bat < prev    next >
Encoding:
DOS Batch File  |  2000-11-07  |  289 b   |  10 lines

  1. @ECHO OFF
  2. REM Simple check of a stateful encoding.
  3. REM Usage: check-stateful.bat SRCDIR CHARSET
  4.  
  5. .\iconv -f %2 -t UTF-8 < %1\%2-snippet > tmp-snippet
  6. fc %1\%2-snippet.UTF-8 tmp-snippet
  7. .\iconv -f UTF-8 -t %2 < %1\%2-snippet.UTF-8 > tmp-snippet
  8. fc %1\%2-snippet tmp-snippet
  9. del tmp-snippet
  10.